package com.edu.bean;

import java.util.List;

/**
 * @Auther:zzp
 * @Date:2025/10/17-11:51:40
 */
public class Department {

    private int id;

    private String depName;

    private int parentId;

    private List<Employee> employees;

    public List<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", depName='" + depName + '\'' +
                ", parentId=" + parentId +
                ", employees=" + employees +
                '}';
    }
}
